package com.autohome.wz.business.order.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CouponBatchSellerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CouponBatchSellerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNull() {
            addCriterion("seller_id is null");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNotNull() {
            addCriterion("seller_id is not null");
            return (Criteria) this;
        }

        public Criteria andSellerIdEqualTo(Integer value) {
            addCriterion("seller_id =", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotEqualTo(Integer value) {
            addCriterion("seller_id <>", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThan(Integer value) {
            addCriterion("seller_id >", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("seller_id >=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThan(Integer value) {
            addCriterion("seller_id <", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThanOrEqualTo(Integer value) {
            addCriterion("seller_id <=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdIn(List<Integer> values) {
            addCriterion("seller_id in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotIn(List<Integer> values) {
            addCriterion("seller_id not in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdBetween(Integer value1, Integer value2) {
            addCriterion("seller_id between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("seller_id not between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andCouponTypeIsNull() {
            addCriterion("coupon_type is null");
            return (Criteria) this;
        }

        public Criteria andCouponTypeIsNotNull() {
            addCriterion("coupon_type is not null");
            return (Criteria) this;
        }

        public Criteria andCouponTypeEqualTo(Integer value) {
            addCriterion("coupon_type =", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotEqualTo(Integer value) {
            addCriterion("coupon_type <>", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeGreaterThan(Integer value) {
            addCriterion("coupon_type >", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("coupon_type >=", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeLessThan(Integer value) {
            addCriterion("coupon_type <", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeLessThanOrEqualTo(Integer value) {
            addCriterion("coupon_type <=", value, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeIn(List<Integer> values) {
            addCriterion("coupon_type in", values, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotIn(List<Integer> values) {
            addCriterion("coupon_type not in", values, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeBetween(Integer value1, Integer value2) {
            addCriterion("coupon_type between", value1, value2, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("coupon_type not between", value1, value2, "couponType");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNull() {
            addCriterion("coupon_name is null");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNotNull() {
            addCriterion("coupon_name is not null");
            return (Criteria) this;
        }

        public Criteria andCouponNameEqualTo(String value) {
            addCriterion("coupon_name =", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotEqualTo(String value) {
            addCriterion("coupon_name <>", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThan(String value) {
            addCriterion("coupon_name >", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThanOrEqualTo(String value) {
            addCriterion("coupon_name >=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThan(String value) {
            addCriterion("coupon_name <", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThanOrEqualTo(String value) {
            addCriterion("coupon_name <=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLike(String value) {
            addCriterion("coupon_name like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotLike(String value) {
            addCriterion("coupon_name not like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameIn(List<String> values) {
            addCriterion("coupon_name in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotIn(List<String> values) {
            addCriterion("coupon_name not in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameBetween(String value1, String value2) {
            addCriterion("coupon_name between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotBetween(String value1, String value2) {
            addCriterion("coupon_name not between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponAmountIsNull() {
            addCriterion("coupon_amount is null");
            return (Criteria) this;
        }

        public Criteria andCouponAmountIsNotNull() {
            addCriterion("coupon_amount is not null");
            return (Criteria) this;
        }

        public Criteria andCouponAmountEqualTo(BigDecimal value) {
            addCriterion("coupon_amount =", value, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponAmountNotEqualTo(BigDecimal value) {
            addCriterion("coupon_amount <>", value, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponAmountGreaterThan(BigDecimal value) {
            addCriterion("coupon_amount >", value, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_amount >=", value, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponAmountLessThan(BigDecimal value) {
            addCriterion("coupon_amount <", value, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("coupon_amount <=", value, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponAmountIn(List<BigDecimal> values) {
            addCriterion("coupon_amount in", values, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponAmountNotIn(List<BigDecimal> values) {
            addCriterion("coupon_amount not in", values, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_amount between", value1, value2, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("coupon_amount not between", value1, value2, "couponAmount");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateIsNull() {
            addCriterion("coupon_start_date is null");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateIsNotNull() {
            addCriterion("coupon_start_date is not null");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateEqualTo(Date value) {
            addCriterion("coupon_start_date =", value, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateNotEqualTo(Date value) {
            addCriterion("coupon_start_date <>", value, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateGreaterThan(Date value) {
            addCriterion("coupon_start_date >", value, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateGreaterThanOrEqualTo(Date value) {
            addCriterion("coupon_start_date >=", value, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateLessThan(Date value) {
            addCriterion("coupon_start_date <", value, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateLessThanOrEqualTo(Date value) {
            addCriterion("coupon_start_date <=", value, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateIn(List<Date> values) {
            addCriterion("coupon_start_date in", values, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateNotIn(List<Date> values) {
            addCriterion("coupon_start_date not in", values, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateBetween(Date value1, Date value2) {
            addCriterion("coupon_start_date between", value1, value2, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponStartDateNotBetween(Date value1, Date value2) {
            addCriterion("coupon_start_date not between", value1, value2, "couponStartDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateIsNull() {
            addCriterion("coupon_end_date is null");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateIsNotNull() {
            addCriterion("coupon_end_date is not null");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateEqualTo(Date value) {
            addCriterion("coupon_end_date =", value, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateNotEqualTo(Date value) {
            addCriterion("coupon_end_date <>", value, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateGreaterThan(Date value) {
            addCriterion("coupon_end_date >", value, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateGreaterThanOrEqualTo(Date value) {
            addCriterion("coupon_end_date >=", value, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateLessThan(Date value) {
            addCriterion("coupon_end_date <", value, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateLessThanOrEqualTo(Date value) {
            addCriterion("coupon_end_date <=", value, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateIn(List<Date> values) {
            addCriterion("coupon_end_date in", values, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateNotIn(List<Date> values) {
            addCriterion("coupon_end_date not in", values, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateBetween(Date value1, Date value2) {
            addCriterion("coupon_end_date between", value1, value2, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponEndDateNotBetween(Date value1, Date value2) {
            addCriterion("coupon_end_date not between", value1, value2, "couponEndDate");
            return (Criteria) this;
        }

        public Criteria andCouponRuleIsNull() {
            addCriterion("coupon_rule is null");
            return (Criteria) this;
        }

        public Criteria andCouponRuleIsNotNull() {
            addCriterion("coupon_rule is not null");
            return (Criteria) this;
        }

        public Criteria andCouponRuleEqualTo(String value) {
            addCriterion("coupon_rule =", value, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleNotEqualTo(String value) {
            addCriterion("coupon_rule <>", value, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleGreaterThan(String value) {
            addCriterion("coupon_rule >", value, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleGreaterThanOrEqualTo(String value) {
            addCriterion("coupon_rule >=", value, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleLessThan(String value) {
            addCriterion("coupon_rule <", value, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleLessThanOrEqualTo(String value) {
            addCriterion("coupon_rule <=", value, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleLike(String value) {
            addCriterion("coupon_rule like", value, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleNotLike(String value) {
            addCriterion("coupon_rule not like", value, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleIn(List<String> values) {
            addCriterion("coupon_rule in", values, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleNotIn(List<String> values) {
            addCriterion("coupon_rule not in", values, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleBetween(String value1, String value2) {
            addCriterion("coupon_rule between", value1, value2, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponRuleNotBetween(String value1, String value2) {
            addCriterion("coupon_rule not between", value1, value2, "couponRule");
            return (Criteria) this;
        }

        public Criteria andCouponStockIsNull() {
            addCriterion("coupon_stock is null");
            return (Criteria) this;
        }

        public Criteria andCouponStockIsNotNull() {
            addCriterion("coupon_stock is not null");
            return (Criteria) this;
        }

        public Criteria andCouponStockEqualTo(Integer value) {
            addCriterion("coupon_stock =", value, "couponStock");
            return (Criteria) this;
        }

        public Criteria andCouponStockNotEqualTo(Integer value) {
            addCriterion("coupon_stock <>", value, "couponStock");
            return (Criteria) this;
        }

        public Criteria andCouponStockGreaterThan(Integer value) {
            addCriterion("coupon_stock >", value, "couponStock");
            return (Criteria) this;
        }

        public Criteria andCouponStockGreaterThanOrEqualTo(Integer value) {
            addCriterion("coupon_stock >=", value, "couponStock");
            return (Criteria) this;
        }

        public Criteria andCouponStockLessThan(Integer value) {
            addCriterion("coupon_stock <", value, "couponStock");
            return (Criteria) this;
        }

        public Criteria andCouponStockLessThanOrEqualTo(Integer value) {
            addCriterion("coupon_stock <=", value, "couponStock");
            return (Criteria) this;
        }

        public Criteria andCouponStockIn(List<Integer> values) {
            addCriterion("coupon_stock in", values, "couponStock");
            return (Criteria) this;
        }

        public Criteria andCouponStockNotIn(List<Integer> values) {
            addCriterion("coupon_stock not in", values, "couponStock");
            return (Criteria) this;
        }

        public Criteria andCouponStockBetween(Integer value1, Integer value2) {
            addCriterion("coupon_stock between", value1, value2, "couponStock");
            return (Criteria) this;
        }

        public Criteria andCouponStockNotBetween(Integer value1, Integer value2) {
            addCriterion("coupon_stock not between", value1, value2, "couponStock");
            return (Criteria) this;
        }

        public Criteria andTakeNumIsNull() {
            addCriterion("take_num is null");
            return (Criteria) this;
        }

        public Criteria andTakeNumIsNotNull() {
            addCriterion("take_num is not null");
            return (Criteria) this;
        }

        public Criteria andTakeNumEqualTo(Integer value) {
            addCriterion("take_num =", value, "takeNum");
            return (Criteria) this;
        }

        public Criteria andTakeNumNotEqualTo(Integer value) {
            addCriterion("take_num <>", value, "takeNum");
            return (Criteria) this;
        }

        public Criteria andTakeNumGreaterThan(Integer value) {
            addCriterion("take_num >", value, "takeNum");
            return (Criteria) this;
        }

        public Criteria andTakeNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("take_num >=", value, "takeNum");
            return (Criteria) this;
        }

        public Criteria andTakeNumLessThan(Integer value) {
            addCriterion("take_num <", value, "takeNum");
            return (Criteria) this;
        }

        public Criteria andTakeNumLessThanOrEqualTo(Integer value) {
            addCriterion("take_num <=", value, "takeNum");
            return (Criteria) this;
        }

        public Criteria andTakeNumIn(List<Integer> values) {
            addCriterion("take_num in", values, "takeNum");
            return (Criteria) this;
        }

        public Criteria andTakeNumNotIn(List<Integer> values) {
            addCriterion("take_num not in", values, "takeNum");
            return (Criteria) this;
        }

        public Criteria andTakeNumBetween(Integer value1, Integer value2) {
            addCriterion("take_num between", value1, value2, "takeNum");
            return (Criteria) this;
        }

        public Criteria andTakeNumNotBetween(Integer value1, Integer value2) {
            addCriterion("take_num not between", value1, value2, "takeNum");
            return (Criteria) this;
        }

        public Criteria andUseNumIsNull() {
            addCriterion("use_num is null");
            return (Criteria) this;
        }

        public Criteria andUseNumIsNotNull() {
            addCriterion("use_num is not null");
            return (Criteria) this;
        }

        public Criteria andUseNumEqualTo(Integer value) {
            addCriterion("use_num =", value, "useNum");
            return (Criteria) this;
        }

        public Criteria andUseNumNotEqualTo(Integer value) {
            addCriterion("use_num <>", value, "useNum");
            return (Criteria) this;
        }

        public Criteria andUseNumGreaterThan(Integer value) {
            addCriterion("use_num >", value, "useNum");
            return (Criteria) this;
        }

        public Criteria andUseNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("use_num >=", value, "useNum");
            return (Criteria) this;
        }

        public Criteria andUseNumLessThan(Integer value) {
            addCriterion("use_num <", value, "useNum");
            return (Criteria) this;
        }

        public Criteria andUseNumLessThanOrEqualTo(Integer value) {
            addCriterion("use_num <=", value, "useNum");
            return (Criteria) this;
        }

        public Criteria andUseNumIn(List<Integer> values) {
            addCriterion("use_num in", values, "useNum");
            return (Criteria) this;
        }

        public Criteria andUseNumNotIn(List<Integer> values) {
            addCriterion("use_num not in", values, "useNum");
            return (Criteria) this;
        }

        public Criteria andUseNumBetween(Integer value1, Integer value2) {
            addCriterion("use_num between", value1, value2, "useNum");
            return (Criteria) this;
        }

        public Criteria andUseNumNotBetween(Integer value1, Integer value2) {
            addCriterion("use_num not between", value1, value2, "useNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumIsNull() {
            addCriterion("alert_num is null");
            return (Criteria) this;
        }

        public Criteria andAlertNumIsNotNull() {
            addCriterion("alert_num is not null");
            return (Criteria) this;
        }

        public Criteria andAlertNumEqualTo(Integer value) {
            addCriterion("alert_num =", value, "alertNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumNotEqualTo(Integer value) {
            addCriterion("alert_num <>", value, "alertNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumGreaterThan(Integer value) {
            addCriterion("alert_num >", value, "alertNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("alert_num >=", value, "alertNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumLessThan(Integer value) {
            addCriterion("alert_num <", value, "alertNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumLessThanOrEqualTo(Integer value) {
            addCriterion("alert_num <=", value, "alertNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumIn(List<Integer> values) {
            addCriterion("alert_num in", values, "alertNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumNotIn(List<Integer> values) {
            addCriterion("alert_num not in", values, "alertNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumBetween(Integer value1, Integer value2) {
            addCriterion("alert_num between", value1, value2, "alertNum");
            return (Criteria) this;
        }

        public Criteria andAlertNumNotBetween(Integer value1, Integer value2) {
            addCriterion("alert_num not between", value1, value2, "alertNum");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdIsNull() {
            addCriterion("seller_activity_id is null");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdIsNotNull() {
            addCriterion("seller_activity_id is not null");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdEqualTo(String value) {
            addCriterion("seller_activity_id =", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdNotEqualTo(String value) {
            addCriterion("seller_activity_id <>", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdGreaterThan(String value) {
            addCriterion("seller_activity_id >", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdGreaterThanOrEqualTo(String value) {
            addCriterion("seller_activity_id >=", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdLessThan(String value) {
            addCriterion("seller_activity_id <", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdLessThanOrEqualTo(String value) {
            addCriterion("seller_activity_id <=", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdLike(String value) {
            addCriterion("seller_activity_id like", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdNotLike(String value) {
            addCriterion("seller_activity_id not like", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdIn(List<String> values) {
            addCriterion("seller_activity_id in", values, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdNotIn(List<String> values) {
            addCriterion("seller_activity_id not in", values, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdBetween(String value1, String value2) {
            addCriterion("seller_activity_id between", value1, value2, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdNotBetween(String value1, String value2) {
            addCriterion("seller_activity_id not between", value1, value2, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Integer value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Integer value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Integer value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Integer value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Integer> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Integer> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Integer value1, Integer value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIsNull() {
            addCriterion("Created_Stime is null");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIsNotNull() {
            addCriterion("Created_Stime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeEqualTo(Date value) {
            addCriterion("Created_Stime =", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotEqualTo(Date value) {
            addCriterion("Created_Stime <>", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeGreaterThan(Date value) {
            addCriterion("Created_Stime >", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Created_Stime >=", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeLessThan(Date value) {
            addCriterion("Created_Stime <", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeLessThanOrEqualTo(Date value) {
            addCriterion("Created_Stime <=", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIn(List<Date> values) {
            addCriterion("Created_Stime in", values, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotIn(List<Date> values) {
            addCriterion("Created_Stime not in", values, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeBetween(Date value1, Date value2) {
            addCriterion("Created_Stime between", value1, value2, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotBetween(Date value1, Date value2) {
            addCriterion("Created_Stime not between", value1, value2, "createdStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIsNull() {
            addCriterion("Modified_Stime is null");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIsNotNull() {
            addCriterion("Modified_Stime is not null");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeEqualTo(Date value) {
            addCriterion("Modified_Stime =", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotEqualTo(Date value) {
            addCriterion("Modified_Stime <>", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeGreaterThan(Date value) {
            addCriterion("Modified_Stime >", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Modified_Stime >=", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeLessThan(Date value) {
            addCriterion("Modified_Stime <", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeLessThanOrEqualTo(Date value) {
            addCriterion("Modified_Stime <=", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIn(List<Date> values) {
            addCriterion("Modified_Stime in", values, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotIn(List<Date> values) {
            addCriterion("Modified_Stime not in", values, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeBetween(Date value1, Date value2) {
            addCriterion("Modified_Stime between", value1, value2, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotBetween(Date value1, Date value2) {
            addCriterion("Modified_Stime not between", value1, value2, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andValidDaysIsNull() {
            addCriterion("valid_days is null");
            return (Criteria) this;
        }

        public Criteria andValidDaysIsNotNull() {
            addCriterion("valid_days is not null");
            return (Criteria) this;
        }

        public Criteria andValidDaysEqualTo(Integer value) {
            addCriterion("valid_days =", value, "validDays");
            return (Criteria) this;
        }

        public Criteria andValidDaysNotEqualTo(Integer value) {
            addCriterion("valid_days <>", value, "validDays");
            return (Criteria) this;
        }

        public Criteria andValidDaysGreaterThan(Integer value) {
            addCriterion("valid_days >", value, "validDays");
            return (Criteria) this;
        }

        public Criteria andValidDaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("valid_days >=", value, "validDays");
            return (Criteria) this;
        }

        public Criteria andValidDaysLessThan(Integer value) {
            addCriterion("valid_days <", value, "validDays");
            return (Criteria) this;
        }

        public Criteria andValidDaysLessThanOrEqualTo(Integer value) {
            addCriterion("valid_days <=", value, "validDays");
            return (Criteria) this;
        }

        public Criteria andValidDaysIn(List<Integer> values) {
            addCriterion("valid_days in", values, "validDays");
            return (Criteria) this;
        }

        public Criteria andValidDaysNotIn(List<Integer> values) {
            addCriterion("valid_days not in", values, "validDays");
            return (Criteria) this;
        }

        public Criteria andValidDaysBetween(Integer value1, Integer value2) {
            addCriterion("valid_days between", value1, value2, "validDays");
            return (Criteria) this;
        }

        public Criteria andValidDaysNotBetween(Integer value1, Integer value2) {
            addCriterion("valid_days not between", value1, value2, "validDays");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("create_user is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("create_user is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("create_user =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("create_user <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("create_user >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("create_user >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("create_user <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("create_user <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("create_user like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("create_user not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("create_user in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("create_user not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("create_user between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("create_user not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdIsNull() {
            addCriterion("coupon_threshold is null");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdIsNotNull() {
            addCriterion("coupon_threshold is not null");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdEqualTo(Long value) {
            addCriterion("coupon_threshold =", value, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdNotEqualTo(Long value) {
            addCriterion("coupon_threshold <>", value, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdGreaterThan(Long value) {
            addCriterion("coupon_threshold >", value, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdGreaterThanOrEqualTo(Long value) {
            addCriterion("coupon_threshold >=", value, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdLessThan(Long value) {
            addCriterion("coupon_threshold <", value, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdLessThanOrEqualTo(Long value) {
            addCriterion("coupon_threshold <=", value, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdIn(List<Long> values) {
            addCriterion("coupon_threshold in", values, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdNotIn(List<Long> values) {
            addCriterion("coupon_threshold not in", values, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdBetween(Long value1, Long value2) {
            addCriterion("coupon_threshold between", value1, value2, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponThresholdNotBetween(Long value1, Long value2) {
            addCriterion("coupon_threshold not between", value1, value2, "couponThreshold");
            return (Criteria) this;
        }

        public Criteria andCouponNameLikeInsensitive(String value) {
            addCriterion("upper(coupon_name) like", value.toUpperCase(), "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponRuleLikeInsensitive(String value) {
            addCriterion("upper(coupon_rule) like", value.toUpperCase(), "couponRule");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdLikeInsensitive(String value) {
            addCriterion("upper(seller_activity_id) like", value.toUpperCase(), "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andCreateUserLikeInsensitive(String value) {
            addCriterion("upper(create_user) like", value.toUpperCase(), "createUser");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}